package com.ziyia.intent_fliter_test;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    private static final String ACTION = "test_action";
    private static final String CATEGORY_1 = "test_category_1";
    private static final String CATEGORY_2 = "test_category_2";

    public void test(View view) {
        Intent intent = new Intent();

        intent.setAction(ACTION);
//        intent.addCategory(CATEGORY_1);
//        intent.addCategory(CATEGORY_2);

        startActivity(intent);
    }
}